export function getCookieObj() {
  /**
   * 获取浏览器对象类型的cookies
   */

  let cookies = document.cookie
  let cookies_arr = cookies.split('; ') // 对cookies字符串进行分割
  let cookieObj = {} // 保存每个cookie的对象
  cookies_arr.forEach(cookie => { // 遍历cookie写入对象
    let temp_arr = cookie.split('=')
    cookieObj[temp_arr[0]] = temp_arr[1]
  });
  return cookieObj
}